
'use strict'
const packageName = require('./package.json').name
module.exports = {
  devServer: {
    open: true, // 自动启动浏览器
    host: 'localhost', // localhost
    port: 1001, // 端口号
    headers: {
      'Access-Control-Allow-Origin': '*'
    }
  },
  configureWebpack: {
    output: {
      library: `${packageName}-[name]`,
      libraryTarget: 'umd',
      jsonpFunction: `webpackJsonp_${packageName}`
    }

  }

}
